import baseRequest from "../interceptor/baseRequest"


export function httpAction(url, param, method) {
    return baseRequest({
        url: url,
        method: method,
        params: param
    })
}

export function httpActionData(url, data, method) {
    return baseRequest({
        url: url,
        method: method,
        data: data
    })
}


export function getAction(url, param) {
    return baseRequest({
        url: url,
        method: 'get',
        params: param
    })
}

export function delAction(url, param) {
    return baseRequest({
        url: url,
        method: "delete",
        params: param
    })
}

export function putAction(url, data) {
    return baseRequest({
        url: url,
        method: "put",
        data: data
    })
}

export function postAction(url, data) {
    return baseRequest({
        url: url,
        method: "post",
        data: data
    })
}

